import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router';
import  moment  from "moment"
import heyui  from 'heyui';
import 'heyui/themes/index.css';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import * as pdfjsWorker from 'pdfjs-dist/build/pdf.worker.mjs'
window.pdfjsWorker = pdfjsWorker

const app  = createApp(App)
app.use(router);
app.use(heyui);
app.use(ElementPlus,{
    locale: zhCn,
});
moment.locale('zh-cn');
app.config.globalProperties.$moment = moment
app.mount('#app');